package top.tenebrous.yzl.utils;


import top.tenebrous.yzl.context.JesticContext;
import top.tenebrous.yzl.enums.TaskEnum;

/**
 * @Description:
 * @Project: jestic-server
 * @Package: com.tenebrous.jestic.utils
 * @Author: zhangya
 * @CreateTime: 2023-06-30  17:08
 * @Version: 1.0.0
 */
public class JesticContextInstance<K, V> {

    public static <K, V> JesticContext<K, V> initContext(K request, V response, TaskEnum taskEnum) {
        JesticContext<K, V> context = new JesticContext<>();
        context.setRequest(request);
        context.setResponse(response);
        context.setTaskEnum(taskEnum);
        return context;
    }

}
